package com.turing.domain;

import com.turing.utils.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品#goods_spu_info
 * @TableName goods_spu_info
 */
public class GoodsSpuInfo extends BaseEntity implements Serializable {
    /**
     * 商品主键#primary
     */
    private Integer goodsId;

    /**
     * 一级分类#foreign#category_one=cone_id,cone_name
     */
    private Integer coneId;

    /**
     * 二级分类#foreign#category_two=ctwo_id,ctwo_name
     */
    private Integer ctwoId;

    /**
     * 三级分类#foreign#category_three=cthr_id,cthr_name
     */
    private Integer cthrId;

    /**
     * 品牌#foreign#brand_info=brand_id,brand_cn_name
     */
    private Integer brdId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品代号
     */
    private String goodsCode;

    /**
     * 录入时间
     */
    private Date goodsInTime;

    /**
     * 详细说明
     */
    private String goodsInfo;

    /**
     * 最新修改时间
     */
    private Date modifiedTime;


    private String coneName;
    private String ctwoName;
    private String cthrName;
    private String brdCnName;

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("GoodsSpuInfo{");
        sb.append("goodsId=").append(goodsId);
        sb.append(", coneId=").append(coneId);
        sb.append(", ctwoId=").append(ctwoId);
        sb.append(", cthrId=").append(cthrId);
        sb.append(", brdId=").append(brdId);
        sb.append(", goodsName='").append(goodsName).append('\'');
        sb.append(", goodsCode='").append(goodsCode).append('\'');
        sb.append(", goodsInTime=").append(goodsInTime);
        sb.append(", goodsInfo='").append(goodsInfo).append('\'');
        sb.append(", modifiedTime=").append(modifiedTime);
        sb.append(", coneName='").append(coneName).append('\'');
        sb.append(", ctwoName='").append(ctwoName).append('\'');
        sb.append(", cthrName='").append(cthrName).append('\'');
        sb.append(", brdCnName='").append(brdCnName).append('\'');
        sb.append(", pageNum=").append(pageNum);
        sb.append(", pageSize=").append(pageSize);
        sb.append('}');
        return sb.toString();
    }

    public String getConeName() {
        return coneName;
    }

    public void setConeName(String coneName) {
        this.coneName = coneName;
    }

    public String getCtwoName() {
        return ctwoName;
    }

    public void setCtwoName(String ctwoName) {
        this.ctwoName = ctwoName;
    }

    public String getCthrName() {
        return cthrName;
    }

    public void setCthrName(String cthrName) {
        this.cthrName = cthrName;
    }

    public String getBrdCnName() {
        return brdCnName;
    }

    public void setBrdCnName(String brdCnName) {
        this.brdCnName = brdCnName;
    }

    private static final long serialVersionUID = 1L;

    /**
     * 商品主键#primary
     */
    public Integer getGoodsId() {
        return goodsId;
    }

    /**
     * 商品主键#primary
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 一级分类#foreign#category_one=cone_id,cone_name
     */
    public Integer getConeId() {
        return coneId;
    }

    /**
     * 一级分类#foreign#category_one=cone_id,cone_name
     */
    public void setConeId(Integer coneId) {
        this.coneId = coneId;
    }

    /**
     * 二级分类#foreign#category_two=ctwo_id,ctwo_name
     */
    public Integer getCtwoId() {
        return ctwoId;
    }

    /**
     * 二级分类#foreign#category_two=ctwo_id,ctwo_name
     */
    public void setCtwoId(Integer ctwoId) {
        this.ctwoId = ctwoId;
    }

    /**
     * 三级分类#foreign#category_three=cthr_id,cthr_name
     */
    public Integer getCthrId() {
        return cthrId;
    }

    /**
     * 三级分类#foreign#category_three=cthr_id,cthr_name
     */
    public void setCthrId(Integer cthrId) {
        this.cthrId = cthrId;
    }

    /**
     * 品牌#foreign#brand_info=brand_id,brand_cn_name
     */
    public Integer getBrdId() {
        return brdId;
    }

    /**
     * 品牌#foreign#brand_info=brand_id,brand_cn_name
     */
    public void setBrdId(Integer brdId) {
        this.brdId = brdId;
    }

    /**
     * 商品名称
     */
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 商品名称
     */
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    /**
     * 商品代号
     */
    public String getGoodsCode() {
        return goodsCode;
    }

    /**
     * 商品代号
     */
    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    /**
     * 录入时间
     */
    public Date getGoodsInTime() {
        return goodsInTime;
    }

    /**
     * 录入时间
     */
    public void setGoodsInTime(Date goodsInTime) {
        this.goodsInTime = goodsInTime;
    }

    /**
     * 详细说明
     */
    public String getGoodsInfo() {
        return goodsInfo;
    }

    /**
     * 详细说明
     */
    public void setGoodsInfo(String goodsInfo) {
        this.goodsInfo = goodsInfo;
    }

    /**
     * 最新修改时间
     */
    public Date getModifiedTime() {
        return modifiedTime;
    }

    /**
     * 最新修改时间
     */
    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GoodsSpuInfo other = (GoodsSpuInfo) that;
        return (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))
            && (this.getConeId() == null ? other.getConeId() == null : this.getConeId().equals(other.getConeId()))
            && (this.getCtwoId() == null ? other.getCtwoId() == null : this.getCtwoId().equals(other.getCtwoId()))
            && (this.getCthrId() == null ? other.getCthrId() == null : this.getCthrId().equals(other.getCthrId()))
            && (this.getBrdId() == null ? other.getBrdId() == null : this.getBrdId().equals(other.getBrdId()))
            && (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName()))
            && (this.getGoodsCode() == null ? other.getGoodsCode() == null : this.getGoodsCode().equals(other.getGoodsCode()))
            && (this.getGoodsInTime() == null ? other.getGoodsInTime() == null : this.getGoodsInTime().equals(other.getGoodsInTime()))
            && (this.getGoodsInfo() == null ? other.getGoodsInfo() == null : this.getGoodsInfo().equals(other.getGoodsInfo()))
            && (this.getModifiedTime() == null ? other.getModifiedTime() == null : this.getModifiedTime().equals(other.getModifiedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode());
        result = prime * result + ((getConeId() == null) ? 0 : getConeId().hashCode());
        result = prime * result + ((getCtwoId() == null) ? 0 : getCtwoId().hashCode());
        result = prime * result + ((getCthrId() == null) ? 0 : getCthrId().hashCode());
        result = prime * result + ((getBrdId() == null) ? 0 : getBrdId().hashCode());
        result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode());
        result = prime * result + ((getGoodsCode() == null) ? 0 : getGoodsCode().hashCode());
        result = prime * result + ((getGoodsInTime() == null) ? 0 : getGoodsInTime().hashCode());
        result = prime * result + ((getGoodsInfo() == null) ? 0 : getGoodsInfo().hashCode());
        result = prime * result + ((getModifiedTime() == null) ? 0 : getModifiedTime().hashCode());
        return result;
    }

}